
return {
  -- 配置 mason 的安装源
  {
    "williamboman/mason.nvim",

    opts = {
      github = {
        ---@since 1.0.0
        -- The template URL to use when downloading assets from GitHub.
        -- The placeholders are the following (in order):
        -- 1. The repository (e.g. "rust-lang/rust-analyzer")
        -- 2. The release version (e.g. "v0.3.0")
        -- 3. The asset name (e.g. "rust-analyzer-v0.3.0-x86_64-unknown-linux-gnu.tar.gz")
        download_url_template = "https://kkgithub.com/%s/releases/download/%s/%s",
      },

      pip = {
        ---@since 1.0.0
        -- Whether to upgrade pip to the latest version in the virtual environment before installing packages.
        upgrade_pip = false,

        ---@since 1.0.0
        -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior
        -- and is not recommended.
        --
        -- Example: { "--proxy", "https://proxyserver" }
        install_args = {'-i', 'https://mirrors.ustc.edu.cn/pypi/simple/'},
      },
    }
  },

  -- 配置默认安装的 lsp
  {
    "williamboman/mason-lspconfig.nvim",
    
    -- A list of servers to automatically install if they're not already installed. Example: { "rust_analyzer@nightly", "lua_ls" }
    -- This setting has no relation with the `automatic_installation` setting.
    ---@type string[]
    ensure_installed = {
      ruff,
      basedpyright,

      rust_analyzer,
    },
  }
}